package logic

import (
	"common/pkg"
	"context"
	"opd_server/proto/opd"
)

func (o OpdService) AiConsultation(ctx context.Context, req *opd.AiConsultationRequest) (resp *opd.AiConsultationResponse, err error) {
	ernie := pkg.Ernie(req.Question)
	return &opd.AiConsultationResponse{
		Answer: ernie,
	}, nil
}
